﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain;

namespace Traceability.Service.Interfae
{
    /// <summary>
    /// 包材信息
    /// </summary>
    public interface IPackagingService
    {
        Task<int> CreatePackaging(Packaging packaging);
        /// <summary>
        /// 反填根据自身生产批次
        /// </summary>
        /// <param name="bath"></param>
        /// <returns></returns>
        Task<List<Packaging>> GetPackagingBy(string bath);
        Task<int> UpdatePackaging(Packaging packaging);
        /// <summary>
        /// 显示根据溯源ID
        /// </summary>
        /// <param name="bacth"></param>
        /// <returns></returns>
        Task<List<Packaging>> GetPackagingList(int tid);

    }
}
